home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 44 / PC Actual CD 44.iso / Linux / Cygwin / full.exe / Disk1 / data1.cab / Tools / H-i586-cygwin32 / i586-cygwin32 / include / mntent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-04  |  717 b   |  36 lines

  1. #ifndef _MNTENT_H
  2. #define _MNTENT_H
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. struct mntent
  9.   {
  10.     const char *mnt_fsname;
  11.     const char *mnt_dir;
  12.     const char *mnt_type;
  13.     const char *mnt_opts;
  14.     int  mnt_freq;
  15.     int  mnt_passno;
  16. };
  17.  
  18. FILE *setmntent (const char *__filep, const char *__type);
  19. struct mntent *getmntent (FILE *__filep);
  20. int addmntent (FILE *__filep, const struct mntent *__mnt);
  21. int endmntent (FILE *__filep);
  22. char *hasmntopt (const struct mntent *__mnt, const char *__opt);
  23.  
  24. /* This next file doesn't exist, it is in the registry,
  25.    however applications need the define to pass to
  26.    the above calls.
  27. */
  28. #ifndef MOUNTED
  29. #define MOUNTED "/etc/mtab"
  30. #endif
  31. #ifdef __cplusplus
  32. };
  33. #endif
  34.  
  35. #endif /* _MNTENT_H */
  36.